home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / SpriteFight 2002 v2.0a1 / SpriteError.h < prev    next >
Text File  |  1996-04-29  |  3KB  |  93 lines

  1. /*** SpriteError.h by Stefan C. SInclair Copyright © 1995-6 All rights reserved. ***/
  2.  
  3. #ifndef _SPRITEERROR_
  4. #define _SPRITEERROR_
  5.  
  6. #include "Speech.h"
  7.  
  8. #define kSeriousDamageString "\pCould not even get error string!\rThis application is seriously damaged!"
  9.  
  10. /*** For DoError fxn ***/
  11. #define kDoErrorAlertID        150
  12. #define kDoErrorStringListResID        kDoErrorAlertID
  13.  
  14.  
  15. #define kSoundUPPError                1
  16. #define kCouldNotCreateSprites        2
  17. #define kCouldNotCreatePlayer1Sprite    3
  18. #define kCouldNotCreatePlayer2Sprite    4
  19. #define kCouldNotCreateASoundChannel    5
  20. #define kUnknownSpriteInGame            6
  21. #define kNULLSoundHandle                7
  22. #define kNULLSoundChannel                8
  23. #define kCouldNotFlushSoundChannel        9
  24. #define kCouldNotQuietSoundChannel        10
  25. #define kCouldNotGetSoundHeaderOffset    11
  26. #define kSoundBufferError                12
  27. #define kNoEnterMovies                    13
  28. #define kNoFileSpecForMovie                14
  29. #define kNoOpenFile                        15
  30. #define kNoMovieInFile                    16
  31. #define kGeneralMemoryError                17
  32. #define kCouldNotEnterSW                18
  33. #define kPlayer1NotLoaded                19
  34. #define kPlayer2NotLoaded                20
  35. #define kCombatZoneNotLoaded            21
  36. #define kCouldNotCreateBackGroundSprite    22
  37. #define kCanNotSetVolume                23
  38. #define kBadSoundChannel                24
  39. #define kUnknownError                    25
  40. #define kNeedMonitor256Colors            26
  41. #define kQuickTimeError                    27
  42. #define kResError                        28
  43. #define kNoQuickTimeInstalled            29
  44. #define kNeedSoundMgr3ForMegaVolume        30
  45.  
  46. /*** For ChoiceAlert fxn ***/
  47. #define kChoiceAlertResID                200
  48. #define kChoiceStringListResID            kChoiceAlertResID
  49.  
  50. #define kItemNumber2        2
  51.  
  52. #define kWantToQuit                        1
  53. #define kTournamentCoice1                2
  54. #define kTournamentCoice2                3
  55. #define kTournamentCoice3                4
  56. #define kWantToGoToNextRound            5
  57.  
  58. /*** For CantRunOnThisMachine ***/
  59. #define kErrorAlertResID                128
  60. #define kCantRunAlertResID                129
  61. #define kErrorStringListResID            128
  62. #define kUnknownErrorStringIndex        1
  63. #define kCantFindResourceStringIndex    2
  64. #define kNotEnoughMemoryStringIndex        3
  65. #define kNeedSoundMgr3                    4
  66. #define kNeedSystem7                    5
  67. #define kNeedQuickTime                    6
  68. #define kNeedSpeechMgr                    7
  69. #define kNeedColorQuickDraw                8
  70. #define kNeed14inchMonitor                9
  71.  
  72. /*** For Message Alerts ***/
  73. #define kMessageAlertID                    131
  74. #define kMessageStringListID            131
  75. #define kSelectPlayer1                    1
  76. #define kSelectPlayer2                    2
  77. #define kSelectCombatZone                3
  78. #define kBetaNotice                        4
  79. #define kFeatureNotAvailable            5
  80. #define kSpeechOn                        6
  81. #define kSpeechOff                        7
  82. #define kQTOn                            8
  83. #define kQTOff                            9
  84.  
  85. // Function Protos
  86. void DoMessage( short message);
  87. void DoError( short error, Boolean fatal);
  88. Boolean ChoiceAlert(short choice);
  89. void ErrorAlert(OSErr err, short errorStringIndex);
  90. void CantFindResource(void);
  91. void CantRunOnThisMachine(short whyNot, Boolean fatal);
  92.  
  93. #endif /* SPriteError */